//
//  IfengLabel.h
//  IfengNews
//
//  Created by tianhy on 12-12-26.
//
//

#import <UIKit/UIKit.h>
@class IfengLabel;
@protocol IfengLabelDelegate <NSObject>

- (void)ifengLabelDidSingleClickAtIndex:(NSNumber *)index
                               withData:(NSDictionary *)dic
                              withLevel:(NSNumber *)level
                     withLocateInWindow:(CGPoint)locateInWindow
                       withLocateInCell:(CGPoint)locateInCell
                         withSizeOfCell:(CGSize)sizeOfCell
                               withView:(UIView *)view;
//- (void)ifengLabelDidSingleClick:(IfengLabel *)label;
@end

@interface IfengLabel : UIView
{
  NSDictionary *dataDic;  //为label提供数据源
  id <IfengLabelDelegate> __weak delegate;
  NSInteger index;
  NSInteger level;
  NSTimeInterval touchTimeInterval;
}
@property (nonatomic, strong) NSDictionary *dataDic;
@property (nonatomic, weak) id <IfengLabelDelegate> delegate;
@property (nonatomic, assign) NSInteger index;
@property (nonatomic, assign) NSInteger level;
@property (nonatomic, strong) NSString *comeFrom;

//@property (nonatomic, assign) NSInteger tag;
@end
